import request from '../utils/request';

export const saveArticle = payload => request('/api/articles/add', {
    method: 'POST',
    body: payload
})

export const upArticle = payload => request('/api/articles/update', {
    method: 'POST',
    body: payload
})

export async function recArticles() {
    return request('/api/articles/list');
}

export async function curArticle(articleId) {
    return request(`/api/articles/show/${articleId}`);
}


